<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2020/1/13
 * Time: 10:56
 */

namespace app\adminapiv3\controller;


class ServerMiddleware extends Base
{
    /**
     * @name 中间键管理列表
     * @param $type
     * @author wx
     * @date 2020/1/13 11:01
     */
    public function list($type){
        $params['name'] = $this->filterInput('name','get');
        $params['ip'] = $this->filterInput('ip','get');
        $params['version'] = $this->filterInput('version','get');
        $params['desc'] = $this->filterInput('desc','get');
        $params['type'] = $this->filterInput('type','get');

        $server = new \app\adminapiv3\service\ServerMiddleware();
        $list = $server->toDo('list',[$params, $type, $this->getLimit()]);

        $this->jsonOutPut($list);
    }
}